package lxt.entity;

// default package

/**
 * ParameterId entity. @author MyEclipse Persistence Tools
 */

public class ParameterId implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	// Fields

	private String paramType;// 参数类型
	private String paramKey;// 参数键

	// Constructors

	/** default constructor */
	public ParameterId() {
	}

	/** full constructor */
	public ParameterId(String paramType, String paramKey) {
		System.out.println("ParameterId.ParameterId():" + paramType + "\n" + paramKey);
		this.paramType = paramType;
		this.paramKey = paramKey;
	}

	// Property accessors

	public String getParamType() {
		return this.paramType;
	}

	public void setParamType(String paramType) {
		this.paramType = paramType;
	}

	public String getParamKey() {
		return this.paramKey;
	}

	public void setParamKey(String paramKey) {
		this.paramKey = paramKey;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ParameterId))
			return false;
		ParameterId castOther = (ParameterId) other;

		return ((this.getParamType() == castOther.getParamType()) || (this
				.getParamType() != null
				&& castOther.getParamType() != null && this.getParamType()
				.equals(castOther.getParamType())))
				&& ((this.getParamKey() == castOther.getParamKey()) || (this
						.getParamKey() != null
						&& castOther.getParamKey() != null && this
						.getParamKey().equals(castOther.getParamKey())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getParamType() == null ? 0 : this.getParamType().hashCode());
		result = 37 * result
				+ (getParamKey() == null ? 0 : this.getParamKey().hashCode());
		return result;
	}

}